class SparePartParams {
  /// 备件编号
  String? code;

  /// 备件名称
  String? name;

  /// 备件类型
  SparePartTypeEnum? type;

  /// 备件单位
  SparePartUnitEnum? unit;

  /// 最小库存
  int? minInventory;

  /// 最大库存
  int? maxInventory;

  /// 最小更换
  int? minChange;

  /// 最大更换
  int? maxChange;
}

enum SparePartTypeEnum {
  all(1, '全部')
  ,
  main(2, '主要设备');

  final int value;

  final String label;

  const SparePartTypeEnum(this.value, this.label);
}

enum SparePartUnitEnum {
  all(1, '全部');

  final int value;

  final String label;

  const SparePartUnitEnum(this.value, this.label);
}
